package com.anli.zkconfig;

import org.apache.curator.RetryPolicy;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.ExponentialBackoffRetry;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/8/30  20:06
 * 描述:
 */
@Configuration
public class ZkConfig {


    /*@Bean
    public CuratorFramework getZkconfig(){
        ExponentialBackoffRetry exponentialBackoffRetry=new ExponentialBackoffRetry(5000,3);

        CuratorFramework curatorFramework = CuratorFrameworkFactory.newClient("127.0.0.1:2181", exponentialBackoffRetry);

        curatorFramework.start();

        return curatorFramework;
    }*/

}
